<template>
  <div>MineView</div>
  <el-button text @click="isDialog = true"> 新增 </el-button>
  <MyView :isDialog="isDialog" :closeDialog="closeDialog"></MyView>
</template>

<script lang="ts">
import { defineComponent, ref } from "vue";
import MyView from "@/components/MyView.vue";
export default defineComponent({
  name: "MineView",
  setup() {
    let isDialog = ref<boolean>(false);
    const closeDialog = () => {
      isDialog.value = false;
    };
    return { isDialog, closeDialog };
  },
  components: { MyView },
});
</script>

<style lang="scss" scoped>
</style>
